@import './modules/reset.scss';
@import './modules/header.scss';
@import './modules/footer.scss';

main {
  @include center();
  padding-top: 10px;
  margin-bottom: 40px;
  overflow: hidden;
  .list {
    float: left;
    width: 240px;
    height: 978px;
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    >div {
      width: 240px;
      display: flex;
      flex-flow: column;
      background-color: #fff;
      a {
        display: block;
        height: 50px;
        line-height: 50px;
        text-align: center;
        font-size: 14px;
        border-bottom: 1px solid #f2f2f2;
        border-right: 4px solid #fff;
      }
      >a:nth-child(1) {
        font-size: 16px;
        background: url(/images/touxiang.png) 55px center no-repeat;
      }
      a.on {
        color: #ff4c2f;
        border-color: #ff4c2f;
        border-bottom-color: #f2f2f2;
      }
    }
  }
  .listContent {
    float: right;
    width: 950px;
    min-height: 1000px;
    background-color: #fff;
    padding-bottom: 30px;
    .title {
      padding-left: 20px;
      height: 49px;
      line-height: 49px;
      border-bottom: 1px solid #f2f2f2;
      span {
        font-size: 18px;
        color: #2c3e50;
      }
    }
    .booklist {
      padding-top: 5px;
      .sec-book {
        padding-bottom: 17px;
        margin: 20px 25px;
        overflow: hidden;
        border-bottom: 1px solid #e6e6e6;
        position: relative;
        dl {
          overflow: hidden;
          dt {
            float: left;
            a {
              img {
                width: 110px;
                height: 150px;
                vertical-align: middle;
              }
            }
          }
          dd {
            float: left;
            margin: 10px 0 0 30px;
            width: 560px;
            >a {
              font-size: 18px;
              font-weight: 700;
              line-height: 20px;
              color: #333;
              span {
                width: 20px;
                height: 20px;
                background: #999;
                border-radius: 50%;
                color: #fff;
                text-align: center;
                font-size: 12px;
                display: inline-block;
                margin-right: 10px;
                background-color: #ff4c2f
              }
            }
            p {
              margin-top: 10px;
              color: #999;
              font-size: 12px;
              a {
                color: #999;
              }
              span {
                display: inline-block;
                margin-left: 50px;
                color: #999;
              }
            }
            p:nth-child(3) {
              height: 40px;
              line-height: 21px;
              overflow: hidden;
            }
            p:nth-child(4) {
              a.red {
                color: #ff4c2f;
                margin-right: 15px;
              }
              span {
                margin-left: 0;
              }
            }
          }
        }
        .bookbtn {
          position: absolute;
          right: 0;
          top: 43px;
          .detaibtn {
            margin: 10px 0;
            width: 98px;
            height: 34px;
            line-height: 34px;
            display: block;
            text-align: center;
            font-size: 16px;
            border-radius: 5px;
            color: #fff;
            border: 1px solid transparent;
            border-color: #ff4c2f;
            background-color: #ff4c2f;
          }
          .addbtn {
            @extend .detaibtn;
            color: #333;
            border: 1px solid #ccc;
            background-color: #fff;
          }
        }
      }
    }
  }
}